package com.student.client.controller;

import com.student.client.entity.Huodong;
import com.student.client.service.HuodongService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class HuodongController {
    @Autowired
    private HuodongService huodongService;

    @RequestMapping("/huodong/get")
    public List<Huodong> getHuodong(){
        return huodongService.findAllhuodong();
    }
}
